File "/struts-tags" not found帮忙解决下吧

来源:百度知道 编辑:UC知道 时间:2024/05/14 09:23:12
在用struts2的标签时,访问含有struts2标签的页面时出现错误,错误是
严重的: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: File "/struts-tags" not found
我的web.xml里的配置信息
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>

<jsp-config>
<taglib>
<taglib-uri>/struts-tags</taglib-uri>
<taglib-location>/WEB-INF/lib/struts2-core-2.0.11.1.jar</taglib-location>
</taglib>
</jsp-config>
页面引用:
<%@ taglib prefix="s" uri="/struts-tags"%>
在工程:/WEB-INF/lib下有struts2-core-2.0.11.1.jar和commons-lang-2[1].3.jar
大侠门,帮

去掉
<jsp-config>
<taglib>
<taglib-uri>/struts-tags</taglib-uri>
<taglib-location>/WEB-INF/lib/struts2-core-2.0.11.1.jar</taglib-location>
</taglib>
</jsp-config>

web.xml当中不需要配置的。。。。
去掉jsp-config配置,
然后加入commons-fileupload-1.2.1.jar
重新启动服务即可!

jsp中路径不对瓦?